﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>防止JavaScript文件被其他站直接引用</title>
    <script type="text/javascript" language="JavaScript">
        function sts()
        {
            if(window.location.hostname!="www.baidu.com")
            {
                alert("请不要剽窃本站的js文件!");
                window.top.location.href = "http://www.baidu.com/";
            }
        }
        
    </script>
</head>
<body>

</body>
</html>